import request from '@/utils/request'
import QS from 'qs'
// 删除图片
export function deletePic(data) {
  return request({
    url: '/fileUpload/delete',
    method: 'post',
    data:QS.stringify(data)
  })
}
// 获取所有权限树状图展示
export function getGoodsList(params) {
  return request({
    url: '/goods/list',
    method: 'get',
    params,
    timeout: 10000,
  })
}
// 获取所有参数树状图展示
export function getCategoryList() {
  return request({
    url: '/goods/category/list',
    method: 'get',
  })
}
// 获取所有参数树状图展示
export function getAttributeList(catId,params) {
  return request({
    url: '/goods/attribute/list/'+catId,
    method: 'get',
    params
  })
}